package com.xoa.model.emergency;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CrashDispatch {

    // 任务ID
    private Integer crasId;
    /**
     * 所属事件Id
     */
    private Integer pareId;

    // 事件名称
    private String pareEventName;

    // 任务名称
    private String eventName;

    // 发生时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date happenTime;

    // 发生地点
    private String happenPlace;

    // 人员确认状态 0 未确认 1 已确认
    private String eventState;

    //人员确认人
    private String confirmUser;


    // 救援人员确认时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date confirmTime;

    public Integer getCrasId() {
        return crasId;
    }

    public void setCrasId(Integer crasId) {
        this.crasId = crasId;
    }

    public Integer getPareId() {
        return pareId;
    }

    public void setPareId(Integer pareId) {
        this.pareId = pareId;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName == null ? null : eventName.trim();
    }

    public String getPareEventName() {
        return pareEventName;
    }

    public void setPareEventName(String pareEventName) {
        this.pareEventName = pareEventName;
    }

    public Date getHappenTime() {
        return happenTime;
    }

    public void setHappenTime(Date happenTime) {
        this.happenTime = happenTime;
    }

    public String getHappenPlace() {
        return happenPlace;
    }

    public void setHappenPlace(String happenPlace) {
        this.happenPlace = happenPlace == null ? null : happenPlace.trim();
    }

    public String getEventState() {
        return eventState;
    }

    public void setEventState(String eventState) {
        this.eventState = eventState == null ? null : eventState.trim();
    }

    public String getConfirmUser() {
        return confirmUser;
    }

    public void setConfirmUser(String confirmUser) {
        this.confirmUser = confirmUser;
    }

    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }
}